test-all: Use environment variable GBTEMP.
authoroliskoli <oliskoli>
Wed, 25 Jul 2007 19:49:09 +0000 (19:49 +0000)
committeroliskoli <oliskoli>
Wed, 25 Jul 2007 19:49:09 +0000 (19:49 +0000)
If you have a lot of free memory (>256MB) and GBTEMP is set to '/dev/shm'
test-all runs some times faster.

test-all

index c08a52df1c2356cc8940c0f1d050cb6e7737e302..8e192eb9f0c0e63d244e07d1afcfda680a45b87d 100755 (executable)
--- a/test-all
+++ b/test-all
@@ -6,8 +6,7 @@ PNAME=${PNAME:-./gpsbabel}
 REFGPX="reference/expertgps.gpx"       # reference file for all tests
 EXCL="ozi vitosmt"                     # exclude formats from test
 CAPS=""
-# TEMPDIR=/dev/shm/gb-test-all
-TEMPDIR=/tmp/gb-test-all
+TEMPDIR=${GBTEMP:-/tmp}/gb-test-all
 CATALOG=/tmp/gb-test-all.done
 LOGFILE=/tmp/gb-test-all.log